#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void my_strcpy(char*p1,const char*p2)
{
	while (*p2 != '\0')
	{
		*p1 = *p2;
		p1++;
		p2++;
	}
	*p1 = '\0';
}
int main()
{
	char arr1[30] = "hello world";
	char arr2[30] = { 0 };
	my_strcpy(arr2,arr1);
	printf("%s", arr2);
	return 0;
}